import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'
export default defineConfig({
	base: './',
	server: {
		https: false,
		host: true,
		open: false,
		strictPort: false,
		proxy: {
<<<<<<< HEAD
			'/user': {
				// target: 'http://192.168.110.16:8081',
				changeOrigin: true,
				// rewrite: (path) => path.replace(/^\/api/, '')
			}
=======
			// '/user': {
			// 	target: 'http://localhost:8081',
			// 	changeOrigin: true,
			// 	// rewrite: (path) => path.replace(/^\/api/, '')
			// }
>>>>>>> 27e61e513d5f3d08b03c3a597f91f6c63c10af44
		}
	},
	plugins: [
		vue(),
	],
	// 配置别名
	resolve: {
		alias: {
			'@': resolve(__dirname, './src'),
		}
	},
})
